package com.wlz.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * @author： wlz
 * @Date 2020/12/23 18:41
 * @description： TODO
 * @version: 1.0
 */
@Data
@Document(indexName = "article")
public class Article implements Serializable {

    private static final long serialVersionUID = 1222221L;

    @Id
    private String id;
    private String title;
    private String content;
    private Integer userId;
    private Date createTime;


}
